import request from '@/utils/request'

// 查询宠物驱虫记录列表
export function listDeworming(query) {
  return request({
    url: '/pet/deworming/list',
    method: 'get',
    params: query
  })
}

// 查询宠物驱虫记录详细
export function getDeworming(id) {
  return request({
    url: '/pet/deworming/' + id,
    method: 'get'
  })
}

// 新增宠物驱虫记录
export function addDeworming(data) {
  return request({
    url: '/pet/deworming',
    method: 'post',
    data: data
  })
}

// 修改宠物驱虫记录
export function updateDeworming(data) {
  return request({
    url: '/pet/deworming',
    method: 'put',
    data: data
  })
}

// 删除宠物驱虫记录
export function delDeworming(id) {
  return request({
    url: '/pet/deworming/' + id,
    method: 'delete'
  })
}
